package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenj
 * @since 2020-03-25
 */
public class BorrowInBackGoods extends Model<BorrowInBackGoods> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 借入归还单id
     */
    private String borrowInBackId;

    /**
     * 借入单商品表id
     */
    private String borrowInGoodsId;

    /**
     * 商品
     */
    private String goodsId;

    /**
     * 商品数量
     */
    private BigDecimal number;

    /**
     * 单位id
     */
    private String unitId;

    /**
     * 换算倍数
     */
    private BigDecimal times;

    /**
     * 备注
     */
    private String remark;

    private String companyId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getBorrowInBackId() {
        return borrowInBackId;
    }

    public void setBorrowInBackId(String borrowInBackId) {
        this.borrowInBackId = borrowInBackId;
    }
    public String getBorrowInGoodsId() {
        return borrowInGoodsId;
    }

    public void setBorrowInGoodsId(String borrowInGoodsId) {
        this.borrowInGoodsId = borrowInGoodsId;
    }
    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }
    public BigDecimal getNumber() {
        return number;
    }

    public void setNumber(BigDecimal number) {
        this.number = number;
    }
    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }
    public BigDecimal getTimes() {
        return times;
    }

    public void setTimes(BigDecimal times) {
        this.times = times;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BorrowInBackGoods{" +
            "id=" + id +
            ", borrowInBackId=" + borrowInBackId +
            ", borrowInGoodsId=" + borrowInGoodsId +
            ", goodsId=" + goodsId +
            ", number=" + number +
            ", unitId=" + unitId +
            ", times=" + times +
            ", remark=" + remark +
            ", companyId=" + companyId +
        "}";
    }
}
